/*
 * @Description:
 * @Version: 1.0
 * @Autor: laikt
 * @Date: 2020-12-30 10:43:50
 * @LastEditors: laikt
 * @LastEditTime: 2020-12-30 13:52:11
 */
import Vue from 'vue'

const vueFiles = require.context('./', true, /component\.vue$/)
vueFiles.keys().forEach(key => {
    const component = vueFiles(key).default
    Vue.component(component.name, component)
})

const jsFiles = require.context('./', true, /component\.js$/)
jsFiles.keys().forEach(key => {
    const component = jsFiles(key).default
    Vue.component(component.name, component)
})
